﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Dynamic;
using YhmOA.IDAL;
using YhmOA.Model;
using YhmOA.Common;

namespace YhmOA.EFDAL
{
    public class Integrated_Car_CarDAL : IIntegrated_Car_CarDAL
    {
        private Entities entities;

        public Integrated_Car_CarDAL()
        {
            entities = new Entities(typeof(Integrated_Car_Car));
        }

        /// <summary>
        /// 取得车牌号码列表
        /// </summary>
        /// <returns>车牌号码列表</returns>
        public List<string> GetPlateNumList()
        {
            var query = (from item in entities.CreateObjectSet<Integrated_Car_Car>()
                         select item.PlateNum);
            return query.ToList<string>();
        }
    }
}
